Home / Data table / Remove row

Data table ‐ Remove row


Removing a row from a data table

Endpoint

DELETE /api/datatable/remove/:dataTable/:id

Parameters:

  • :dataTable (string) - name of the table within which the search is done
  • :id (mixed) - value of the primary key of the row that ought to be deleted

Headers

see Using authentication token

Response

        {
          "valid": true,
          "data": null
        }

Example code:

<?php

require_once 'RestOpen.php';

$username = 'my_username';
$password = 'my_password';
$workspaceId = 999;
$tableName = 'your_table_name';
$primaryKey = 'your_primary_key';

$rest = new RestOpen($username, $password, $workspaceId);
$result = $rest->deleteDataTableRow($tableName, $primaryKey);

var_dump($result);